import Vue from 'vue'
import Vuex from 'vuex'
import { InstanceCode } from '../common/code'

Vue.use(Vuex)
const instanceMap = new Map([
  [InstanceCode.AVS_CODE_PATH, InstanceCode.AVS_NAME],
  [InstanceCode.CBH_CODE_PATH, InstanceCode.CBH_NAME],
  [InstanceCode.VFW_CODE_PATH, InstanceCode.VFW_NAME],
  [InstanceCode.CWAF_CODE_PATH, InstanceCode.CWAF_NAME],
  [InstanceCode.WDS_CODE_PATH, InstanceCode.WDS_NAME],
  [InstanceCode.HSEC_CODE_PATH, InstanceCode.HSEC_NAME],
  [InstanceCode.LAS_CODE_PATH, InstanceCode.LAS_NAME],
  [InstanceCode.DAS_CODE_PATH, InstanceCode.DAS_NAME],
])
const states: any = { instanceMap: instanceMap }
const mutations: any = {}

export default new Vuex.Store({
  state: states,
  mutations: mutations,
  actions: {},
  modules: {},
})
